

            const path = require('path');
            const staticImg = path.join(__dirname, 'static');

            function ArduinoUnoBlocks (Blockly) {
            
                        
                        
                        
                        
                        

                        Blockly.Blocks['EXT_DS1302_SENSOR_BLOCK_1608002855605'] = {
                            init: function() {
                                this.jsonInit({
                                    "message0": Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605,
                                    "args0": [
                                        
                        {
                            "type": "field_dropdown",
                            "name":  "clk",
                            "options": [
                                 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_0,  '1'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_1,  '2'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_2,  '3'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_3,  '4'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_4,  '5'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_5,  '6'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_6,  '7'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_7,  '8'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_8,  '9'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_9,  '10'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_10,  '11'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_11,  '12'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_12,  '13'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_13,  '14'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_14,  '15'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_15,  '16'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_16,  '17'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_17,  '18'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_18,  '19'],

                            ]
                        },
                        
                        {
                            "type": "field_dropdown",
                            "name":  "dat",
                            "options": [
                                 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_0,  '1'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_1,  '2'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_2,  '3'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_3,  '4'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_4,  '5'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_5,  '6'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_6,  '7'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_7,  '8'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_8,  '9'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_9,  '10'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_10,  '11'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_11,  '12'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_12,  '13'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_13,  '14'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_14,  '15'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_15,  '16'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_16,  '17'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_17,  '18'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_18,  '19'],

                            ]
                        },
                        
                        {
                            "type": "field_dropdown",
                            "name":  "rst",
                            "options": [
                                 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_0,  '1'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_1,  '2'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_2,  '3'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_3,  '4'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_4,  '5'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_5,  '6'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_6,  '7'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_7,  '8'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_8,  '9'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_9,  '10'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_10,  '11'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_11,  '12'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_12,  '13'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_13,  '14'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_14,  '15'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_15,  '16'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_16,  '17'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_17,  '18'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855605_CLK_18,  '19'],

                            ]
                        },
                        
                                    ],
                                    "colour": "#28BFE6",
                                    "extensions": ["shape_statement"]
                                });
                                }
                        };
                        
                        

                        Blockly.Blocks['EXT_DS1302_SENSOR_BLOCK_1608002855715'] = {
                            init: function() {
                                this.jsonInit({
                                    "message0": Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855715,
                                    "args0": [
                                        
                        {
                            "type": "input_value",
                            "name": "year"
                        },
                        
                        {
                            "type": "input_value",
                            "name": "month"
                        },
                        
                        {
                            "type": "input_value",
                            "name": "day"
                        },
                        
                                    ],
                                    "colour": "#28BFE6",
                                    "extensions": ["shape_statement"]
                                });
                                }
                        };
                        
                        

                        Blockly.Blocks['EXT_DS1302_SENSOR_BLOCK_1608002855877'] = {
                            init: function() {
                                this.jsonInit({
                                    "message0": Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002855877,
                                    "args0": [
                                        
                        {
                            "type": "input_value",
                            "name": "time"
                        },
                        
                        {
                            "type": "input_value",
                            "name": "minute"
                        },
                        
                        {
                            "type": "input_value",
                            "name": "second"
                        },
                        
                                    ],
                                    "colour": "#28BFE6",
                                    "extensions": ["shape_statement"]
                                });
                                }
                        };
                        
                        

                        Blockly.Blocks['EXT_DS1302_SENSOR_BLOCK_1608002856003'] = {
                            init: function() {
                                this.jsonInit({
                                    "message0": Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002856003,
                                    "args0": [
                                        
                        {
                            "type": "field_dropdown",
                            "name":  "times",
                            "options": [
                                 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002856003_TIMES_0,  'getYear()'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002856003_TIMES_1,  'getMonthStr()'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002856003_TIMES_2,  'getDay()'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002856003_TIMES_3,  'getHour()'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002856003_TIMES_4,  'getMinute()'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002856003_TIMES_5,  'getSecond()'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002856003_TIMES_6,  'getDOWStr()'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002856003_TIMES_7,  'getDateStr()'],
 [Blockly.Msg.EXT_DS1302_SENSOR_BLOCK_1608002856003_TIMES_8,  'getTimeStr()'],

                            ]
                        },
                        
                                    ],
                                    "colour": "#28BFE6",
                                    "extensions":["output_number"]
                                });
                                }
                        };
                        
            return Blockly;
            }

            module.exports = ArduinoUnoBlocks ;

        